package com.spsy.system.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.spsy.common.core.annotation.Excel;
import com.spsy.common.core.web.domain.BaseEntity;

/**
 * 商品规格对象 rule_info
 * 
 * @author arhat
 * @date 2024-11-15
 */
public class RuleInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 规格名称 */
    @Excel(name = "规格名称")
    private String name;

    /** 规格状态 */
    @Excel(name = "规格状态")
    private String status;

    /** 规格详情信息 */
    private List<RuleAttrInfo> ruleAttrInfoList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public List<RuleAttrInfo> getRuleAttrInfoList()
    {
        return ruleAttrInfoList;
    }

    public void setRuleAttrInfoList(List<RuleAttrInfo> ruleAttrInfoList)
    {
        this.ruleAttrInfoList = ruleAttrInfoList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("ruleAttrInfoList", getRuleAttrInfoList())
            .toString();
    }
}
